/*
 * Timer.h
 *
 *  Created on: 21-08-2012
 *      Author: szymon
 */

#ifndef TIMER_H_
#define TIMER_H_

#include <SDL/SDL.h>

class Timer
{
private:
	//The clock time when the timer started
	int startTicks;

	//The ticks stored when the timer was paused
	int pausedTicks;

	//The timer status
	bool paused;
	bool started;

public:
	//Initializes variables
	Timer();

	//The various clock actions
	void start();
	void stop();
	void pause();
	void unpause();

	//Gets the timer's time
	int getTicks();

	//Checks the status of the timer
	bool isStarted();
	bool isPaused();
};


#endif /* TIMER_H_ */
